﻿using Microsoft.Extensions.Logging;

namespace Leo.Common.Logger
{
    public interface ILogs
    {
        ILogger<T> CreateLogger<T>();
        void Debug<T>(string message);
        void Info<T>(string message);
        void Warn<T>(string message);
        void Error<T>(string message, Exception? ex = null);
        void Critical<T>(string message, Exception? ex = null);
    }

    public interface ILogs<T>
    {
        void Debug(string message);
        void Info(string message);
        void Warn(string message);
        void Error(string message, Exception? ex = null);
    }
}
